#define _CRT_SECURE_NO_WARNINGS 1
//#include <stdio.h>
//
//int main()
//{
//	int i = 0;
//	scanf("%d", &i);
//	if (i % 3 == 0 && i % 5 == 0) 
//	{
//		printf("yes\n");
//	}
//	else {
//		printf("no\n");
//	}
//	return 0;
//}

#include <stdio.h>

int main()
{
	int men = 0;
	int women = 0;
	int kid = 0;
	int t = 0;
	for (men = 0; men < 9; men++) 
	{
		for (women = 0; women < 12; women++)
		{
			kid = 36 - men - women;
			t = kid / 2 + 4 * men + 3 * women;
			if (t == 36&&kid%2==0) 
			{
				printf("men:%d,women:%d,kid:%d\n", men, women, kid);
			}
		}
	}
	return 0;
}